<template>
  <div>
    
    <el-upload
      class="upload-demo"
      name="sbb"
      :action="UPLOADURL + '/upload'"
      :on-success="success"
      multiple
      :limit="3"
      :file-list="fileList"
    >
      <el-button size="small" type="primary">点击上传视频文件</el-button>
      <!-- <div slot="tip" class="el-upload__tip">
        只能上传jpg/png文件，且不超过500kb
      </div> -->
    </el-upload>
    <br>

    <video
      class="movie1"
      
      controls
      :src="movie"
    ></video>

    
  </div>
</template>

<script>
export default {
  data() {
    return {
      movie: "",
      fileList:[]
    };
  },
  methods: {
    // submit() {
    //   console.log(this.movie);
    // },
    success(response, file, fileList){
      console.log(response, file, fileList)
      this.movie = response.pic
      console.log(this.movie)
    }	
  },

};
</script>

<style lang="scss" scoped>
.movie1{
  // width: 300px;
  // height: 300px;
  border: 1px solid #ccc;
}

</style>
